package com.jiai.live.service.impl;

import com.jiai.live.dto.LiveDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jiai.mybatis.BaseDao;
import com.jiai.mybatis.BaseServiceImp;
import com.jiai.live.model.LiveSearch;
import com.jiai.live.model.Live;
import com.jiai.live.service.LiveService;
import com.jiai.live.dao.LiveDao;

import java.util.List;

/** 
 * 说明： 
 * 创建人：小方工作室
 * 创建时间：2017-05-07
 * @version
 */
@Service   
public class LiveServiceImpl extends BaseServiceImp<Live,LiveSearch, Long>  implements LiveService{
	
	@Autowired
	private LiveDao liveDao;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseDao getMapper() {
		// TODO Auto-generated method stub
		return liveDao;
	}


	@Override
	public LiveDto findByUserId(String userId) {
		return liveDao.findByUserId(userId);
	}

	@Override
	public List<LiveDto> findStartLive() {
		return liveDao.findStartLive();
	}
}

